﻿@model SysCompanyEmployee
@using (Ajax.BeginForm(null, null, new AjaxOptions { UpdateTargetId= "subMain" }, new { @class = "form-edit" }))
{
	<div class="ui-content">
		<div class="ui-cell">
			<label>招聘岗位</label>
			@Html.EditorFor(p => p.Caption)
			@if(Model.ID>0){@Html.HiddenFor(p => p.ID)}
			@Html.HiddenFor(p => p.CID)
		</div>
		<div class="ui-cell">
			<label>招聘人数</label>
			@Html.EditorFor(p => p.MaxMen)
		</div>
		<div class="ui-cell">
			<label>发布时间</label>
			@Html.TextBox("PublishDate",string.Format("{0:yyyy-MM-dd}",Model.PublishDate))
		</div>
		<div class="ui-cell">
			<label>性别</label>
			@Html.DropDownListFor(p => p.Gender,ViewBag.Gender as SelectList)
		</div>
		<div class="ui-cell">
			<label>户籍要求</label>
			@Html.DropDownListFor(p => p.HouseholdRequirements,ViewBag.HouseholdRequirements as SelectList)
		</div>
		<div class="ui-cell">
			<label>学历</label>
			@Html.DropDownListFor(p => p.Education,ViewBag.Education as SelectList)
		</div>
		<div class="ui-cell">
			<label>综合工资</label>
			@(Html.TextBoxFor(p => p.Salery, new { @class="s"}))(元/月)
		</div>
		<div class="ui-cell">
			<label>工资计算</label>
			@Html.DropDownListFor(p => p.SaleryType,ViewBag.SaleryType as SelectList)
		</div>
		<div class="ui-cell">
			<label>工作时间</label>
			@Html.EditorFor(p => p.WorkingHours)
		</div>
		<div class="ui-cell">
			<label>工作地点</label>
			@Html.EditorFor(p => p.Workplace)
		</div>
		<div class="ui-cell ui-cell-full">
			<label>年龄要求</label>
			@Html.TextBoxFor(p => p.AgeFrom, new { @class="s"})
			<span>到</span>
			@Html.TextBoxFor(p => p.AgeTo, new { @class="s"})
			<span>周岁</span>
		</div>
		<div class="ui-cell ui-cell-full">
			<label>试用期</label>
			@(Html.TextBoxFor(p => p.TrailSalery, new { @class="s"}))(元/月)
			@Html.DropDownListFor(p => p.TrailMonth, ViewBag.TrailMonth as SelectList, new { @class="s"})
		</div>
		<div class="ui-cell ui-cell-full">
			<label>具体要求</label>
			@Html.TextAreaFor(p => p.JobRequirements)
		</div>
		<div class="ui-cell ui-cell-full">
			<label>待遇情况</label>
			@Html.TextAreaFor(p => p.SalaryDescription)
		</div>
		<div class="ui-cell ui-cell-full">
			<label>工作内容</label>
			@Html.TextAreaFor(p => p.Description)
		</div>
		<div class="ui-cell ui-cell-full">
			<label></label>
			<input type="submit" value="保存" class="btn"/>
			@Html.ValidationSummary()
		</div>
	</div>
}
<script type="text/javascript">
	setTimeout(function () {
		calendar("PublishDate");
		if ("@ViewBag.Saved" == 1) window.datachanged = true;
	}, 0);
</script>